﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{
    /// [Generated Jan 30 2011]
    public partial class i_vw_CalendarItem_Note : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _CalendarItem_Note_ID;
        private int _CalendarItem_ID;
        private int _Sort;
        private int _Type_ID;
        private string _Type_Name;
        private int _Note_ID;
        private string _GUID;
        private string _Note;

        #endregion

        #region "public properties"

        public int CalendarItem_Note_ID
        {
            get { return _CalendarItem_Note_ID; }
            set { _CalendarItem_Note_ID = value; }
        }
        public int CalendarItem_ID
        {
            get { return _CalendarItem_ID; }
            set { _CalendarItem_ID = value; }
        }
        public int Sort
        {
            get { return _Sort; }
            set { _Sort = value; }
        }
        public int Type_ID
        {
            get { return _Type_ID; }
            set { _Type_ID = value; }
        }
        public string Type_Name
        {
            get { return _Type_Name; }
            set { _Type_Name = value; }
        }
        public int Note_ID
        {
            get { return _Note_ID; }
            set { _Note_ID = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }
        public string Note
        {
            get { return _Note; }
            set { _Note = value; }
        }

        #endregion
        
        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }
        int ISqoDataObject.OID { get { return CalendarItem_Note_ID; } set { } }
        #endregion

    }//public partial class i_vw_CalendarItem_Note : Utils, ISqoDataObject

    public partial class s_vw_CalendarItem_Note : i_vw_CalendarItem_Note
    {
        #region "MAPPER"
        public static i_vw_CalendarItem_Note Convert(vw_CalendarItem_Note od_vw_CalendarItem_Note)
        {
            return new i_vw_CalendarItem_Note()
            {

                CalendarItem_Note_ID = IsNull(od_vw_CalendarItem_Note.CalendarItem_Note_ID),
                CalendarItem_ID = IsNull(od_vw_CalendarItem_Note.CalendarItem_ID),
                Sort = IsNull(od_vw_CalendarItem_Note.Sort),
                Type_ID = IsNull(od_vw_CalendarItem_Note.Type_ID),
                Type_Name = IsNull(od_vw_CalendarItem_Note.Type_Name),
                Note_ID = IsNull(od_vw_CalendarItem_Note.Note_ID),
                GUID = IsNull(od_vw_CalendarItem_Note.GUID),
                Note = IsNull(od_vw_CalendarItem_Note.Note),

            };
        }
        #endregion

    }//public partial class s_vw_CalendarItem_Note : s_vw_CalendarItem_Note

}//namespace EDMD
